package com.sht.common.dao.mybatis;

import java.util.List;

public interface IBaseDao<T> {
	int deleteByPrimaryKey(String id);

    int insert(T record);
    int insertBatch(List<T> records);
    T selectByPrimaryKey(String id);

    List<T> selectAll();
    List<T> selectListByExample(T record);

    List<T> selectByCondition(T record);
	int deleteByExample(T record);
	
    int updateByPrimaryKey(T record);
    public T selectOneByCondition(String condition);
	public Integer countByCondition(T record);
}
